package com.ophiux.cs.application.consultBase.dto;

import com.ophiux.cs.application.core.RequestDTO;
import com.ophiux.utils.common.DateUtil;
import com.ophiux.utils.common.StringUtil;

import java.util.Date;

public class AddDeptRequest extends RequestDTO {

    private String HOSPITAL_ID;
    private String DEPT_NAME;
    private String DEPT_DESC;
    /**
     *父级科室ID
     */
    private String PARENT_DEPT_ID;
    /**
     *状态 1:有效  0:失效  默认1
     */
    private String STATE="1";

    /**
     *创建时间 格式：yyyy-mm-dd 24hh:mm:ss
     */
    private String CREATE_TIME=DateUtil.getStrDate(new Date(), DateUtil.DateFormat.YYYY_MM_DD_HH_mm_ss);

    @Override
    public boolean isParamValid() {
        if(StringUtil.isEmpty(this.HOSPITAL_ID)){
            return false;
        }
        if(StringUtil.isEmpty(this.DEPT_NAME)){
            return false;
        }
        return true;
    }

    public String getHOSPITAL_ID() {
        return HOSPITAL_ID;
    }

    public void setHOSPITAL_ID(String HOSPITAL_ID) {
        this.HOSPITAL_ID = HOSPITAL_ID;
    }

    public String getDEPT_NAME() {
        return DEPT_NAME;
    }

    public void setDEPT_NAME(String DEPT_NAME) {
        this.DEPT_NAME = DEPT_NAME;
    }

    public String getDEPT_DESC() {
        return DEPT_DESC;
    }

    public void setDEPT_DESC(String DEPT_DESC) {
        this.DEPT_DESC = DEPT_DESC;
    }

    public String getPARENT_DEPT_ID() {
        return PARENT_DEPT_ID;
    }

    public void setPARENT_DEPT_ID(String PARENT_DEPT_ID) {
        this.PARENT_DEPT_ID = PARENT_DEPT_ID;
    }

    public String getSTATE() {
        return STATE;
    }

    public void setSTATE(String STATE) {
        this.STATE = STATE;
    }

    public String getCREATE_TIME() {
        return CREATE_TIME;
    }

    public void setCREATE_TIME(String CREATE_TIME) {
        this.CREATE_TIME = CREATE_TIME;
    }
}
